package com.baizhi.domain.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class CommentSaveDto {

    @NotNull(message = "文章id不能为空")
    private Integer aid;

    @NotBlank(message = "评论内容不能为空")
    private String comment;

    @NotBlank(message = "昵称不能为空")
    private String nickname;

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
